package com.fen.demo015;

import com.fen.common.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @description:
 * @author: lrf
 * @create: 2019-03-23
 **/
public class Main {

	public static void main(String[] args) {

		ApplicationContext context = new AnnotationConfigApplicationContext(UserConfig.class);

		UserService userService = context.getBean("userService", UserService.class);

		userService.test();
	}
}
